package month4.day5.computer;

public class USBKeyboard implements Usb{
    private String brand;
    private int peice;

    @Override
    public void plugin() {
        System.out.println(brand+"键盘连上，灯亮");
    }

    @Override
    public void unuplug() {
        System.out.println(brand+"键盘被拔掉，灯灭");
    }

    @Override
    public void work() {
        System.out.println("键盘在输入字符");
    }

    @Override
    public String toString() {
        return "这是一个" + brand + "键盘";
    }

    public USBKeyboard(String brand, int peice) {
        this.brand = brand;
        this.peice = peice;
    }
}
